using System;

namespace RBAC.Api.Demain.Entities
{
    /// <summary>
    /// 实体基类
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// ID主键
        /// </summary>
        public int Id { get; set; }
        
        /// <summary>
        /// 创建人ID
        /// </summary>
        public int? CreatorId { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        
        /// <summary>
        /// 修改人ID
        /// </summary>
        public int? ModifierId { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }
        
        /// <summary>
        /// 是否删除(软删除标识)
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
} 